package pri.hillchen.springbootstd.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pri.hillchen.springbootstd.entity.User;
import pri.hillchen.springbootstd.mapper.UserMapper;
import pri.hillchen.springbootstd.service.UserService;

/**
 * Created by hillchen on 2017/9/28 0028.
 */
@Service
public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implements UserService {
    @Override
    public User findUserByUserName(String userName) {
        return baseMapper.findUserByUserName(userName);
    }

    @Override
    public User findUserById(String id) {
        return baseMapper.selectById(id);
    }

    @Override
    public User findUserByUserNamePassword(String userName, String passwrod) {
        return baseMapper.findUserByUserNamePassword(userName,passwrod);
    }
}
